﻿<%@ Page Language="C#" MasterPageFile="~/Users/Users.Master" AutoEventWireup="true"
    CodeBehind="ViewListGovermentOfficeRegion.aspx.cs" Inherits="Pantry.Web.Users.WebForm1"
    Title="Untitled Page" EnableEventValidation="true" %>

<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="CollectionPager" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="LinkGroupAll" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="LinkGroup0" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="LinkGroup1" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="LinkGroup2" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="LinkGroup3" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="LinkGroup4" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="LinkGroup5" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="LinkGroup6" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="CheckBoxIncludeActivate" EventName="CheckedChanged" />
        </Triggers>
        <ContentTemplate>
            <div class="g_12 tienvn_panel">
                <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" Visible="false" />
                <div class="widget_header">
                    <h4 class="widget_header_title wwIcon i_16_tables">
                        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
                        <asp:SiteMapPath ID="SiteMapPath1" runat="server">
                        </asp:SiteMapPath>
                        Goverment Office Region List
                    </h4>
                </div>
                <div class="dtBottom">
                    <div class="dtPagination more" style="float: left; margin-left: -15px;">
                        <div class="dataTables_paginate paging_full_numbers" id="DataTables_Table_0_paginate">
                            <span>
                                <asp:LinkButton ID="LinkGroupAll" Text="All" runat="server" OnClick="LinkGroupAllClick"></asp:LinkButton>
                            </span>
                            <span>
                                <asp:LinkButton ID="LinkGroup0" Text="0-9" runat="server" OnClick="LinkGroup0Click"></asp:LinkButton></span>
                            <span>
                                <asp:LinkButton ID="LinkGroup1" Text="A B C D E" runat="server" OnClick="LinkGroup1Click"></asp:LinkButton></span>
                            <span>
                                <asp:LinkButton ID="LinkGroup2" Text="F G H I J" runat="server" OnClick="LinkGroup2Click"></asp:LinkButton></span>
                            <span>
                                <asp:LinkButton ID="LinkGroup3" Text="K L M N" runat="server" OnClick="LinkGroup3Click"></asp:LinkButton></span>
                            <span>
                                <asp:LinkButton ID="LinkGroup4" Text="O P Q R" runat="server" OnClick="LinkGroup4Click"></asp:LinkButton></span>
                            <span>
                                <asp:LinkButton ID="LinkGroup5" Text="S T U V" runat="server" OnClick="LinkGroup5Click"></asp:LinkButton></span>
                            <span>
                                <asp:LinkButton ID="LinkGroup6" Text="W X Y Z" runat="server" OnClick="LinkGroup6Click"></asp:LinkButton></span>
                        </div>
                    </div>
                    <div class="active-panel">
                        <asp:CheckBox ID="CheckBoxIncludeActivate" runat="server" CssClass="simple_form abc"
                            AutoPostBack="True" Checked="true" OnCheckedChanged="CheckBoxIncludeActivateChanged" /><label
                                class="simple_form" for="CheckBoxIncludeActivate">
                                Include in-active</label>
                    </div>
                </div>
                <div style="clear: both;">
                </div>
                <div class="widget_contents noPadding">
                    <table class="tables">
                        <thead>
                            <tr>
                                <th class="sorting">
                                    <asp:LinkButton ID="LinkSortByName" runat="server" OnClick="LinkSortByNameClick">Goverment Office Name</asp:LinkButton>
                                </th>
                                <th class="sorting">
                                    <asp:LinkButton ID="LinkSortByDescription" runat="server" OnClick="LinkSortByDescriptionClick">Description</asp:LinkButton>
                                </th>
                                <th class="sorting">
                                    <asp:LinkButton ID="LinkSortByCounty" runat="server" OnClick="LinkSortByCountyClick">County</asp:LinkButton>
                                </th>
                                <th class="sorting">
                                    <asp:LinkButton ID="LinkSortByActivated" runat="server" OnClick="LinkSortByActivatedClick">Is Active</asp:LinkButton>
                                </th>
                                <th>
                                    <%--<asp:CheckBox ID="CheckBox1" runat="server" CssClass="simple_form" AutoPostBack="True"/>--%>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="RepeaterListGovOfficeRegion" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <a href='ViewGovernmentOfficeRegion.aspx?ID=<%#Eval("GovOfficeRegionId") %>'>
                                                <%#Eval("GovOfficeRegionName") %></a>
                                        </td>
                                        <td>
                                            <%#Eval("Description") %>
                                        </td>
                                        <td>
                                            <%#Eval("CountyName") %>
                                        </td>
                                        <td>
                                            <%#Eval("IsActivated") %>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                    <div class="dtBottom">
                        <div class="dtInfo">
                            <%--<div class="dataTables_info" id="DataTables_Table_0_info">
                                Showing 1 to 10 of 10 entries</div>--%>
                        </div>
                        <div class="dtPagination">
                            <cc1:CollectionPager ID="CollectionPager" runat="server" HideOnSinglePage="false"
                                BackText="Back" FirstText="First" ShowLabel="False" ShowFirstLast="False" NextText="Next"
                                ResultsLocation="None" PageNumbersSeparator=" " PagingMode="PostBack">
                            </cc1:CollectionPager>
                        </div>
                    </div>
                </div>
            </div>
            <a href="#" class="showmessage hasheader"></a>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <div class="loading">
                <div class="icon-load">
                    <img src="Resources/images/Icons/Load/load-108.gif" />
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>

    <script type="text/javascript">
        $(document).ready(function() {
            $('ul.tab_nav li').removeClass("active_tab");
            $('ul.tab_nav li.i_32_charts').addClass("active_tab");
        });
    </script>

</asp:Content>
